<template>
    <div>
        <div class="wrapper">
            <swiper :options="swiperOptions">
                <swiper-slide class="img">
                    <img class="gallary-img" src='http://img1.qunarzz.com/sight/p0/1806/a1/a11fe407e71bf4d5a3.img.jpg_r_800x800_f72da8aa.jpg' alt="">
                </swiper-slide>
                <swiper-slide class="img">
                    <img class="gallary-img" src='http://img1.qunarzz.com/sight/p0/1806/a1/a11fe407e71bf4d5a3.img.jpg_r_800x800_f72da8aa.jpg' alt="">
                </swiper-slide>
                <swiper-slide class="img">
                    <img class="gallary-img" src='http://img1.qunarzz.com/sight/p0/1806/a1/a11fe407e71bf4d5a3.img.jpg_r_800x800_f72da8aa.jpg' alt="">
                </swiper-slide>
                <swiper-slide class="img">
                    <img class="gallary-img" src='http://img1.qunarzz.com/sight/p0/1806/a1/a11fe407e71bf4d5a3.img.jpg_r_800x800_f72da8aa.jpg' alt="">
                </swiper-slide>
                <div class="swiper-pagination"  slot="pagination"></div>
            </swiper>
        </div>
    </div>
</template>


<script>
    export default{
        name:"Demo",
        data (){
            return {
                swiperOptions:{
                    pagination:".swiper-pagination",
                    loop:true,
                    paginationType:'fraction',
                    observeParents:true,
                    observer:true
                }
            }
        }
    }
</script>

<style lang="stylus" scoped>
.container >>> .swiper-container
    overflow inherit
.img
    height 200px
    overflow hidden
    .gallary-img
        width 100%
.swiper-pagination
    color #fff        
</style>
